export default {
  /**
   * 缓存用户信息
   * @param state
   * @param data
   */
  setUserInfo: (state, data) => {
    state.userInfo = data
  },
  /**
   * @purpose 获取区域信息
   * @param state
   * @param location
   */
  setLocation: (state, location) => {
    state.location = location
  },
  /**
   * @purpose 设置用户不同订单状态的数量
   * @param state
   * @param data
   */
  setOrderTotalNumByStatus: (state, data) => {
    state.orderTotalNumByStatus = data
  }
}
